<?php
namespace app\index\model;

use think\Model;

class UserInfo extends Model
{
	function userFinance(){
		return $this->hasOne('UserFinance','user_id')->order("user_id", 'desc');
	}

	function channelInfo(){
		return $this->belongsTo('ChannelInfo','channel_id');
	}

	function campaignInfo(){
		return $this->belongsTo('CampaignInfo','campaign_id');
	}

	function userFinanceOrder(){
		return $this->hasOne('UserFinance','user_id');
	}
}